#include <iostream>
#include <cstring>

class student
{
    public:

    int age;
    char *name;

    void printS()
    {
        printf("%s的年龄:%d\n", name, age);
    }
};


int main()
{
    student stul;
    strcpy(stul.name, "小明");

    stul.age = 20;
    stul.printS();

    return 0;
}